package com.jiajiankang.myspace;


import java.util.List;
import java.util.Map;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ListView;

import com.jiajiankang.R;
import com.jiajiankang.index.GoodsAdapter;
import com.jiajiankang.index.Main;
import com.jiajiankang.index.sixButton;


public class AllOrder extends sixButton {
		private Button btnback;
		private ListView lv;
		private AllOrderAdapter adapter;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.allover);
		btnback=(Button)findViewById(R.id.allorder_back);
		lv=(ListView)findViewById(R.id.allorder_lv);
		
		List<Map<String, Object>>  data = WaitPay_myDataSource.getData();
		adapter = new AllOrderAdapter(AllOrder.this, data);
		lv.setAdapter(adapter);
		btnback.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent =new Intent();
				intent.setClass(AllOrder.this, Main.class);
				startActivity(intent);
				AllOrder.this.finish();
			}
		});
		myClickHandler();
		}
	}
	


